<?php
    use \GatewayWorker\Lib\Db;
    class User{
        function judgeUser($playerInfo){
            $db = Db::instance('game');

            $s = $db->select('user_uid')->from('qg_user')->where("user_openid=:id")->bindValues(array('id'=>$playerInfo['openId']))->query();

            if($s){
                return $s[0]["user_uid"];
            }else{
                return false;
            }
        }
    }

?>